<template>
	<view class="content">
		<view class=" pl-bg">
			<view class="wrap pl-div" v-for="item in list" :key="item.userId">
				<uni-list-chat :avatar-circle="true" :title="item.nickName" :avatar="item.headImg"
					:note="item.createTime.split(' ')[0]">
				</uni-list-chat>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: []
			};
		},
		onLoad() {
			this.getMyTeam()
		},
		methods: {
			getMyTeam() {
				this.$public.htmlPost("/api/getMyTeam").then((res) => {
					console.log("getMyTeam", res)
					let data = res.data;
					if (data.code == 0) {
						this.list = data.data
					}
				})
			}
		}
	}
</script>

<style lang="scss">
	.content {
		.wrap {
			padding: $uni-wrap-padding;
		}

		.pl-bg {
			padding-top: 50rpx;

			.pl-div {
				// margin-top: 24rpx;
				box-shadow: 0 10rpx 20rpx rgba(0, 0, 0, .08);
				margin-bottom: 45rpx;

				/deep/.uni-list-chat {
					.uni-list--border {
						display: none;
					}
				}
			}
		}
	}
</style>